package vn.orderonline.core.dao.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "DISTRICT")
public class District implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer districtId;
	private String districtName;
	private Integer cityId;

	public District() {

	}

	@Id
	@GeneratedValue
	@Column(name = "DISTRICT_ID", unique = true, nullable = false, precision = 10, scale = 0)
	public Integer getDistrictId() {
		return districtId;
	}

	public void setDistrictId(Integer districtId) {
		this.districtId = districtId;
	}

	@Column(name = "DISTRICT_NAME", nullable = false, length = 50)
	public String getDistrictName() {
		return districtName;
	}

	public void setDistrictName(String districtName) {
		this.districtName = districtName;
	}
	
	@Column(name = "CITY_ID", nullable = false, precision = 10, scale = 0)
	public Integer getCityId() {
		return cityId;
	}

	public void setCityId(Integer cityId) {
		this.cityId = cityId;
	}

}
